import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "LearnCTF, CTF学习平台/靶场/入门/练习",
  description: "学习CTF，题库已经适配好，可以方便地在自己的电脑或者服务器上部署CTF题库进行练习。可用于网络安全教学、考核、培训、竞赛等场景",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    siteTitle: false,
    nav: [
      { text: '首页', link: '/' },
      { text: '演示视频', link: 'https://www.bilibili.com/video/BV1VaJDzAEyv/' },
      { text: '安装', link: '/install' },
      { text: '截图', link: '/show' },
      { text: '教学视频', link: 'https://www.bilibili.com/video/BV1uxwoegEFu/' },
      { text: '平台源码', link: 'https://gitee.com/xiangxw/mygzctf.git' },
      { text: '题库源码', link: 'https://gitee.com/xiangxw/ctf_lab' },
      { text: '从源码安装', link: '/build' },
      { text: '更新日志', link: '/updates' }
    ],
    footer: {
      copyright: 'Copyright © 2025-present xiangxw',
      message: `
        <span style="display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;">
          <img src="/head-logo.png" width="12" alt="网站logo" style="display: inline-block; vertical-align: baseline; margin: 0; padding: 0;">
          <a href="https://beian.mps.gov.cn/#/query/webSearch?code=44130202001397" rel="noreferrer" target="_blank" style="display: inline-block; margin: 0; text-decoration: none;">
            粤公网安备44130202001397号
          </a>
          <a href="https://beian.miit.gov.cn/" target="_blank" style="display: inline-block; margin: 0; text-decoration: none;">
            粤ICP备2025371284号
          </a>
        </span>
      `
    },

    sidebar: [
      /*
      {
        text: 'Examples',
        items: [
          { text: 'Markdown Examples', link: '/markdown-examples' },
          { text: 'Runtime API Examples', link: '/api-examples' }
        ]
      }
      */
    ],

    socialLinks: [
      //{ icon: 'gitee', link: 'https://gitee.com/xiangxw/ctf_lab' }
    ]
  }
})
